package cn.cmft.jc.transform.joiner;

import cn.cmft.jc.transform.parse.ChangeOperationType;
import cn.cmft.jc.transform.parse.ChangeDetail;

import java.util.List;

public class ImpactTask {
    private ChangeOperationType operationType;
    private List<ChangeDetail> changeDetail;
    private String task_name;

    public ImpactTask(ChangeOperationType operationType, List<ChangeDetail> changeDetail, String taskName) {
        this.operationType = operationType;
        this.changeDetail = changeDetail;
        this.task_name = taskName;
    }

    public ChangeOperationType getOperationType() {
        return operationType;
    }

    public void setOperationType(ChangeOperationType operation_type) {
        this.operationType = operation_type;
    }

    public String getTask_name() {
        return task_name;
    }

    public void setTask_name(String task_name) {
        this.task_name = task_name;
    }

    public List<ChangeDetail> getChangeDetail() {
        return changeDetail;
    }

    public void setChangeDetail(List<ChangeDetail> changeDetail) {
        this.changeDetail = changeDetail;
    }

    public String getTaskName() {
        return task_name;
    }

    public void setTaskName(String taskName) {
        this.task_name = taskName;
    }

    @Override
    public String toString() {
        return "{" +
                "operationType=" + operationType + "\n" +
                "changeDetail=" + changeDetail + "\n" +
                "taskName='" + task_name + '\'' + "\n" +
                "}";
    }
}
